package com.sbtr.business.trainingserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sbtr.business.trainingserver.entity.TrainingServer;
import com.sbtr.open.trainingserver.dto.TrainingServerDto;

import java.util.List;

/**
 * <p>
 * 图像训练服务器信息 服务类
 * </p>
 */
public interface ITrainingServerService extends IService<TrainingServer> {

    /**
     * 获取所有在线的推理服务器列表，结果无序
     *
     * @return 服务器列表
     * @author qiujun
     * @date 2019-10-30
     */
    List<TrainingServer> listAllPublish();

    /**
     * 根据项目类型获取对应的推理服务器列，结果无序
     */
    List<TrainingServer> listPublishByProjectTpye(String projectType);

    /**
     * 根据服务器类型对应的推理服务器，结果无序
     */
    List<TrainingServer> listPublishByServerType(String serverType);

    List<TrainingServerDto> getList(String status, String serverType, String projectType);

    TrainingServerDto findById(Long id);

    TrainingServerDto save(TrainingServerDto dto);

    boolean deleteById(Long id);
}
